var navReady = false;

var navButtonImageArray = new Array();
for (var i=0;i<4;i++)
{
	navButtonImageArray[i] = new Array();
	for (var t=0;t<4;t++)
	{
		navButtonImageArray[i][t] = new Image();
	}
}

navButtonImageArray[0][0].src="../toolbar/back1a.gif";
navButtonImageArray[0][1].src="../toolbar/back2a.gif";
navButtonImageArray[0][2].src="../toolbar/back3a.gif";
navButtonImageArray[0][3].src="../toolbar/back1a.gif";

navButtonImageArray[1][0].src="../toolbar/goto1a.gif";
navButtonImageArray[1][1].src="../toolbar/goto2a.gif";
navButtonImageArray[1][2].src="../toolbar/goto3a.gif";
navButtonImageArray[1][3].src="../toolbar/goto1a.gif";

navButtonImageArray[2][0].src="../toolbar/forward1a.gif";
navButtonImageArray[2][1].src="../toolbar/forward2a.gif";
navButtonImageArray[2][2].src="../toolbar/forward3a.gif";
navButtonImageArray[2][3].src="../toolbar/forward1a.gif";

function NavOver(num)
{
	var temp = "";
	if (!navReady) return;
	navButtonRefArray[num-1].src = navButtonImageArray[num-1][1].src;
	switch (num)
	{
		case 1:temp = "Click here to go to the previous page";break;
		case 2:temp = "Click here to go to a specific page";break;
		case 3:temp = "Click here to go to the next page";break;
	}
	window.status=temp;
}

function NavDown(num)
{
	if (!navReady) return;
	navButtonRefArray[num-1].src = navButtonImageArray[num-1][2].src;
}

function NavUp(num)
{
	if (!navReady) return;
	navButtonRefArray[num-1].src = navButtonImageArray[num-1][1].src;
}

function NavOut(num)
{
	if (!navReady) return;
	navButtonRefArray[num-1].src = navButtonImageArray[num-1][0].src;
	parent.parent.window.status="";
	parent.parent.Toolbar.updateStatus();
}

function NavClick(num)
{
	if (!navReady) return;
	switch (num)
	{
		case 1:parent.parent.Toolbar.navBack();break;
		case 2:parent.parent.Toolbar.showPages();break;
		case 3:parent.parent.Toolbar.navNext();break;
	}
}

function initNavButtons()
{
	for (var i=0;i<3;i++)
	{
		NavOut(i+1);
	}
	navReady = true;
}

